package com.cloud.punish.tasklist.bean;

import java.util.HashMap;
import java.util.Map;

public class Part {
	private long partId;
	private String partName;
	private String partType;
	private long unitId;
	private String unitCode;
	private String unitName;
	private int code = 0; // 权限编码
	private Map<Long, Integer> auths = new HashMap<Long, Integer>();

	public Part() {
	}

	public Part(long partId, String partName, String partType, long unitId, String unitCode, String unitName) {
		super();
		this.partId = partId;
		this.partName = partName;
		this.partType = partType;
		this.unitId = unitId;
		this.unitCode = unitCode;
		this.unitName = unitName;
	}

	public long getPartId() {
		return partId;
	}

	public void setPartId(long partId) {
		this.partId = partId;
	}

	public String getPartName() {
		return partName;
	}

	public void setPartName(String partName) {
		this.partName = partName;
	}

	public String getPartType() {
		return partType;
	}

	public void setPartType(String partType) {
		this.partType = partType;
	}

	public long getUnitId() {
		return unitId;
	}

	public void setUnitId(long unitId) {
		this.unitId = unitId;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public Map<Long, Integer> getAuths() {
		return auths;
	}

	public void setAuths(Map<Long, Integer> auths) {
		this.auths = auths;
	}

}
